<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>辉光网络</title>

    <!-- swiper 轮播图 -->
    <link rel="stylesheet" href="https://unpkg.com/swiper@8/swiper-bundle.min.css">
    <link rel="stylesheet" href="./js/lib/bootstrap-4.6.2/css/bootstrap.min.css">

    <link rel="stylesheet" href="./styles/base.css">
    <link rel="stylesheet" href="./styles/common.css">
    <link rel="stylesheet" href="./styles/index.css">

    <script src="./js/lib/jquery-3.7.1.min.js"></script>
    <script src="./js/lib/bootstrap-4.6.2/js/bootstrap.min.js"></script>
</head>

<body>
    <div class="home-container">
        <!-- 头部 -->
        <!-- 导航头 -->
        <div class="wrap-bar">
            <!-- 内容版心区域 -->
            <div class="layout-1226 welcome-wrap">
                <!-- 欢迎语 -->
                <div class="welcome-word">
                    你好，欢迎来到辉光网络
                </div>
                <!-- 右侧用户 -->
                <div class="bar-user">
                    <a href="">登录</a>
                    <a href="">注册</a>
                    <a href="">个人中心</a>
                </div>
            </div>
        </div>

        <!-- 固定菜单 -->
        <div class="home-tool-bar">
            <div class="top-title">快捷导航</div>
            <div class="tool-list">
                <a href="javaScript:;" class="item">
                    <img src="/images/kjdh_01.png" class="static">
                    <span class="tool-title">购物车</span>
                </a>
                <a href="javaScript:;" class="item">
                    <img src="/images/kjdh_02.png" class="static">
                    <span class="tool-title">我要出售</span>
                </a>
                <a href="javaScript:;" class="item">
                    <img src="/images/kjdh_03.png" class="static">
                    <span class="tool-title">投诉售后</span>
                </a>
                <a href="javaScript:;" class="item">
                    <img src="/images/kjdh_04.png" class="static">
                    <span class="tool-title">帮助中心</span>
                </a>
                <a href="javaScript:;" class="item">
                    <img src="/images/kjdh_05.png" class="static">
                    <span class="tool-title">微信咨询</span>
                </a>
                <a href="javaScript:;" class="item">
                    <img src="/images/kjdh_06.png" class="static">
                    <span class="tool-title">在线咨询</span>
                </a>
                <a href="javaScript:;" class="item">
                    <img src="/images/kjdh_07.png" class="static">
                    <span class="tool-title">商务合作</span>
                </a>
            </div>
        </div>
        <div class="layout-1226">
            <div class="wrap-header">
                <!-- logo -->
                <a href="javaScript:;">
                    <img src="/images/logo-hg.jpg" alt="huiguang">
                </a>
                <!-- 搜索框 -->
                <div class="wrap-select">
                    <div class="input-group">
                        <select class="form-control">
                            <option selected>王者荣耀</option>
                            <option value="1">逆水寒</option>
                            <option value="2">绝地求生</option>
                            <option value="3">我的世界</option>
                        </select>
                        <input type="text" class="form-control" placeholder="请搜索你喜欢的游戏..." />
                        <div class="input-group-append">
                            <button type="button" class="btn btn-primary">搜索</button>
                        </div>
                    </div>
                    <div class="hot-game d-flex">
                        <span>热门游戏：</span>
                        <ul class="d-flex">
                            <li>穿越火线</li>
                            <li>枪战王者</li>
                            <li>王者荣耀</li>
                            <li>地下城与勇士</li>
                        </ul>
                    </div>
                </div>
            </div>
            <!-- 导航栏 -->
            <div class="nav-wrap">
                <ul>
                    <li class="active">
                        <a href="javaScript:;">
                            <span>首页</span>
                        </a>
                    </li>
                    <li>
                        <a href="javaScript:;">
                            <span>我要买号</span>
                        </a>
                    </li>
                    <li>
                        <a href="javaScript:;">
                            <span>我要卖号</span>
                        </a>
                    </li>
                    <li>
                        <a href="javaScript:;">
                            <span>个人中心</span>
                        </a>
                    </li>
                    <li>
                        <a href="javaScript:;">
                            <span>联系我们</span>
                        </a>
                    </li>
                    <li>
                        <a href="javaScript:;">
                            <span>帮助中心</span>
                        </a>
                    </li>
                </ul>
            </div>
            <!-- 通知公告 -->
            <div class="notice-wrap">
                <img src="./images/p_05.png" alt="">
                <span class="waring">温馨提示：</span>
                <span>辉光网络账号交易平台，为您提供安全的游戏交易服务，切勿私下交易，谨慎诈骗! !!</span>
            </div>
            <div class="swiper-wrap">
                <!-- 轮播左侧 -->
                <div class="swiper-left">
                    <div class="top">
                        <span>热门游戏</span>
                        <span><a href="#">全部游戏 ></a></span>
                    </div>
                    <ul>
                        <li>
                            <a href="javaScript:;">
                                <img src="./images/game_cf1.png">
                                <span>穿越火线</span>
                            </a>
                        </li>
                        <li>
                            <a href="javaScript:;">
                                <img src="./images/game_cf2.png">
                                <span>枪战王者</span>
                            </a>
                        </li>
                        <li>
                            <a href="javaScript:;">
                                <img src="./images/game_wz.png">
                                <span>王者荣耀</span>
                            </a>
                        </li>
                        <li>
                            <a href="javaScript:;">
                                <img src="./images/game_nz.png">
                                <span>逆战</span>
                            </a>
                        </li>
                        <li>
                            <a href="javaScript:;">
                                <img src="./images/game_fc.png">
                                <span>飞车手游</span>
                            </a>
                        </li>
                    </ul>
                </div>
                <!-- 轮播图区域 -->
                <div class="swiper mySwiper">
                    <div class="swiper-wrapper">
                        <div class="swiper-slide">
                            <img src="/images/lbt_01.png">
                        </div>
                        <div class="swiper-slide">
                            <img src="/images/lbt_01.png">
                        </div>
                        <div class="swiper-slide">
                            <img src="/images/lbt_01.png">
                        </div>
                    </div>
                    <!-- 分页器 -->
                    <div class="swiper-pagination"></div>
                    <!-- 左右箭头 -->
                    <div class="swiper-button-next"></div>
                    <div class="swiper-button-prev"></div>
                </div>
                <!-- 轮播右侧 -->
                <div class="swiper-right">
                    <div class="btn-box buy">
                        <img src="./images/buy_02.png" alt="">
                        <span>我要买号</span>
                    </div>
                    <div class="btn-box sale">
                        <img src="./images/sell_02.png" alt="">
                        <span>我要卖号</span>
                    </div>
                    <div class="search-box">
                        <ul id="searchTab">
                            <li class="nav-item active">
                                <div class="title">客服验证</div>
                            </li>
                            <li class="nav-item">
                                <div class="title">黑号查询</div>
                            </li>
                        </ul>
                        <div class="tab-content">
                            <div class="tab-pane" style="display: block;">
                                <div class="input-group input-group-sm">
                                    <input type="text" class="form-control" placeholder="请输入客服QQ号">
                                    <div class="input-group-append">
                                        <button type="button" class="btn btn-primary">查询</button>
                                    </div>
                                </div>
                            </div>
                            <div class="tab-pane">
                                <div class="input-group input-group-sm">
                                    <input type="text" class="form-control" placeholder="请输入查询号码">
                                    <div class="input-group-append">
                                        <button type="button" class="btn btn-primary">查询</button>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="notice-box">
                        <div class="left">
                            <img src="./images/notice_01.png" alt="">
                            <span>公告消息</span>
                        </div>
                        <a href="#" class="more">更多 ></a>
                    </div>
                    <ul class="notice-list">
                        <li><a href="#">关于未成年交易问题</a> </li>
                        <li><a href="#">账号回收流程</a></li>
                        <li><a href="#">关于账号分期相关问题</a></li>
                    </ul>
                </div>

            </div>
            <!-- 内容主体 -->
            <div class="page-main">
                <div class="game-wrap">
                    <!-- 头部导航 -->
                    <div class="tab-box">
                        <h2 class="title-box">顶级账号</h2>
                        <ul class="tab-list">
                            <li class="current"> 天涯明月刀 </li>
                            <li> 天涯明月刀手游 </li>
                            <li> 英雄联盟 </li>
                            <li> 永劫无间 </li>
                            <li> 穿越火线 </li>
                            <li> 逆水寒手游 </li>
                            <li> 王者荣耀 </li>
                        </ul>
                    </div>
                    <div class="more">
                        更多游戏
                    </div>
                </div>
                <div class="game-content" style="display: block">
                    <div class="game-box">
                        <ul class="game-list row">
                            <li class="game-item col-3">
                                <a href="javaScript:;">
                                    <img src="./images/game01.jpeg">
                                    <div class="game-title">
                                        TD180240号【[正能量】211医学生找回游戏号，骗我们夜闯贵州大山
                                    </div>
                                    <div class="price-box">
                                        <span>售价</span>
                                        <span class="price">￥99999</span>
                                    </div>
                                    <div class="area">
                                        <span>游戏区服</span>
                                        <span>天涯明月刀-青龙乱舞长生剑</span>
                                    </div>
                                </a>
                            </li>
                            <li class="game-item col-3">
                                <a href="javaScript:;">
                                    <img src="./images/game01.jpeg">
                                    <div class="game-title">
                                        TD180240号【[正能量】211医学生找回游戏号，骗我们夜闯贵州大山
                                    </div>
                                    <div class="price-box">
                                        <span>售价</span>
                                        <span class="price">￥99999</span>
                                    </div>
                                    <div class="area">
                                        <span>游戏区服</span>
                                        <span>天涯明月刀-青龙乱舞长生剑</span>
                                    </div>
                                </a>
                            </li>
                            <li class="game-item col-3">
                                <a href="javaScript:;">
                                    <img src="./images/game01.jpeg">
                                    <div class="game-title">
                                        TD180240号【[正能量】211医学生找回游戏号，骗我们夜闯贵州大山
                                    </div>
                                    <div class="price-box">
                                        <span>售价</span>
                                        <span class="price">￥99999</span>
                                    </div>
                                    <div class="area">
                                        <span>游戏区服</span>
                                        <span>天涯明月刀-青龙乱舞长生剑</span>
                                    </div>
                                </a>
                            </li>
                            <li class="game-item col-3">
                                <a href="javaScript:;">
                                    <img src="./images/game01.jpeg">
                                    <div class="game-title">
                                        TD180240号【[正能量】211医学生找回游戏号，骗我们夜闯贵州大山
                                    </div>
                                    <div class="price-box">
                                        <span>售价</span>
                                        <span class="price">￥99999</span>
                                    </div>
                                    <div class="area">
                                        <span>游戏区服</span>
                                        <span>天涯明月刀-青龙乱舞长生剑</span>
                                    </div>
                                </a>
                            </li>
                            <li class="game-item col-3">
                                <a href="javaScript:;">
                                    <img src="./images/game01.jpeg">
                                    <div class="game-title">
                                        TD180240号【[正能量】211医学生找回游戏号，骗我们夜闯贵州大山
                                    </div>
                                    <div class="price-box">
                                        <span>售价</span>
                                        <span class="price">￥99999</span>
                                    </div>
                                    <div class="area">
                                        <span>游戏区服</span>
                                        <span>天涯明月刀-青龙乱舞长生剑</span>
                                    </div>
                                </a>
                            </li>
                            <li class="game-item col-3">
                                <a href="javaScript:;">
                                    <img src="./images/game01.jpeg">
                                    <div class="game-title">
                                        TD180240号【[正能量】211医学生找回游戏号，骗我们夜闯贵州大山
                                    </div>
                                    <div class="price-box">
                                        <span>售价</span>
                                        <span class="price">￥99999</span>
                                    </div>
                                    <div class="area">
                                        <span>游戏区服</span>
                                        <span>天涯明月刀-青龙乱舞长生剑</span>
                                    </div>
                                </a>
                            </li>
                            <li class="game-item col-3">
                                <a href="javaScript:;">
                                    <img src="./images/game01.jpeg">
                                    <div class="game-title">
                                        TD180240号【[正能量】211医学生找回游戏号，骗我们夜闯贵州大山
                                    </div>
                                    <div class="price-box">
                                        <span>售价</span>
                                        <span class="price">￥99999</span>
                                    </div>
                                    <div class="area">
                                        <span>游戏区服</span>
                                        <span>天涯明月刀-青龙乱舞长生剑</span>
                                    </div>
                                </a>
                            </li>
                            <li class="game-item col-3">
                                <a href="javaScript:;">
                                    <img src="./images/game01.jpeg">
                                    <div class="game-title">
                                        TD180240号【[正能量】211医学生找回游戏号，骗我们夜闯贵州大山
                                    </div>
                                    <div class="price-box">
                                        <span>售价</span>
                                        <span class="price">￥99999</span>
                                    </div>
                                    <div class="area">
                                        <span>游戏区服</span>
                                        <span>天涯明月刀-青龙乱舞长生剑</span>
                                    </div>
                                </a>
                            </li>
                        </ul>
                    </div>
                </div>
                <div class="game-content">
                    <h2>天涯明月刀手游</h2>
                </div>
                <div class="game-content">
                    <h2>英雄联盟</h2>
                </div>
                <div class="game-content">
                    <h2>永劫无间</h2>
                </div>
                <div class="game-content">
                    <h2>穿越火线</h2>
                </div>
                <div class="game-content">
                    <h2>逆水寒手游</h2>
                </div>
                <div class="game-content">
                    <h2>王者荣耀</h2>
                </div>
            </div>
            <!-- 底部 -->
            <div class="site-footer">
                <div class="layout-1226">
                    <div class="footer-service">
                        <ul>
                            <li>
                                <img src="./images/aq.png" alt="">
                                <div class="right">
                                    <h3>诚信安全</h3>
                                    <span>权威认证,安全便捷</span>
                                </div>
                            </li>
                            <li>
                                <img src="./images/hs1.png" alt="">
                                <div class="right">
                                    <h3>急速回收</h3>
                                    <span>不玩回收,玩腻换号</span>
                                </div>
                            </li>
                            <li>
                                <img src="./images/kf_01.png" alt="">
                                <div class="right">
                                    <h3>专属客服</h3>
                                    <span>1对1客服,优质服务</span>
                                </div>
                            </li>
                            <li>
                                <img src="./images/game.png" alt="">
                                <div class="right">
                                    <h3>精品账号</h3>
                                    <span>各种账号,应有尽有</span>
                                </div>
                            </li>
                        </ul>
                    </div>

                </div>
            </div>
        </div>

        <!-- 底部声明 -->
        <div class="site-info">
            <div class="layout-1226">
                <!-- 声明文字 -->
                <div>
                    <p>
                        <a href="javaScript:;">关于我们</a>
                        <span>|</span>
                        <a href="javaScript:;">联系我们</a>
                        <span>|</span>
                        <a href="javaScript:;">隐私政策</a>
                        <span>|</span>
                        <a href="javaScript:;">政务协议</a>
                        <span>|</span>
                        <a href="javaScript:;">帮助中心</a>
                    </p>
                    <p>
                        <a href="javaScript:;">备案号：xxxxxxxxxx</a>
                        <a href="javaScript:;">公司名称：江苏辉光网络科技有限公司</a>
                        <a href="javaScript:;">© 版权所有</a>
                    </p>
                </div>
            </div>
        </div>

    </div>
</body>

<script src="./js/index.js"></script>
<script src="https://unpkg.com/swiper@8/swiper-bundle.min.js"> </script>
<script>
    var swiper = new Swiper(".mySwiper", {
        // 动画样式 淡出
        effect: 'fade',
        // 无限循环
        loop: true,
        // 鼠标移动上去时，不自动播放
        pauseOnMouseEnter: true,
        // 自动播放
        autoplay: {
            // 点击后是否禁止自动播放
            disableOnInteraction: false,
        },
        // 左右切换箭头
        navigation: {
            nextEl: ".swiper-button-next",
            prevEl: ".swiper-button-prev",
        },
        // 分页器
        pagination: {
            // 绑定的分页器
            el: '.swiper-pagination',
            // 点击分页器切换
            clickable: true,
            // 设置分页器小点样式 
            bulletActiveClass: 'my-bullet-active',
        },
    });

    // 获取元素
    var tabList = document.querySelector(".tab-list");
    var tabListLis = tabList.querySelectorAll("li");
    var tabItems = document.querySelectorAll(".game-content");
    // 注册事件
    for (let i = 0; i < tabListLis.length; i++) {
        // 给每个li添加个data-index属性，为了对应上各自的内容
        tabListLis[i].setAttribute("data-index", i);
        tabListLis[i].onclick = function () {
            // 去掉其他li的current类名
            for (let i = 0; i < tabListLis.length; i++) {
                tabListLis[i].className = "";
            }
            // 设置自己的的current类名
            this.className = "current";
            // 获取当前模块li的data-index值
            var index = this.getAttribute("data-index");
            console.log(index);
            // 去掉其他模块内容的显示
            for (let i = 0; i < tabItems.length; i++) {
                tabItems[i].style.display = "";
            }
            // 让自己的显示
            tabItems[index].style.display = "block";
        };
    }
</script>

</html>